<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" import="java.util.ArrayList,com.kqmanage.entity.Dormitory"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>重庆邮电大学移通学院宿舍管理系统</title>
</head>
<body>
	<%@ include file="/jsp/frameset-header.jsp" %>
	<%@ include file="/jsp/frameset-sidebar.jsp" %>
	<div id="content" >
	<table>
		<tr>
			<th>编号</th>
			<th>宿舍</th>
			<th>寝室名</th>
			<th>公寓号</th>
			<th>操作</th>
		</tr>
		<c:forEach items="${requestScope.dorminList}" var="dor">
		<tr>
			<td>${dor.did }&nbsp;</td>
			<td>${dor.dname }&nbsp;</td>
			<td>${dor.apid }&nbsp;</td>
			<td>
				<a href="dorinUpdate?did=${dor.did }">修改</a>&nbsp;
				<a href="dorinDel?did=${dor.did }">删除</a>
			</td>
		</tr>
		</c:forEach>
	</table>
	
	<input type="button"
			onclick="window.location=''${pageContext.request.contextPath}/jsp/index.jsp'"
			value="返回">
	</div>
	<%@ include file="/jsp/frameset-footer.jsp" %>
</body>
</html>